import {BaseConfig, FieldConfig} from "@/fields/config";

export class TextareaConfig extends BaseConfig {
  title = "多行文本";
  minLength = 10;
  maxLength = 30;
  isMin = false;
  isMax = false;
}
const fieldType = "textarea";

export const textareaDefine = {
  name:"多行文本",
  icon:"el-icon-tickets",
  type: fieldType,
  create: () => {
    const config = new TextareaConfig();
    return new FieldConfig(fieldType, config);
  },
  design: () => import(/* webpackChunkName: "form.comp.all" */ "@/views/fields/designer/textarea/index"),
  config: () => import(/* webpackChunkName: "form.comp.all" */ "@/views/fields/config/textarea/index")
}

